//
//  UserIconEditTabCell.m
//  TenMinDemo
//
//  Created by Shawn Li on 2021/3/10.
//  Copyright © 2021 CYXiang. All rights reserved.
//

#import "UserIconEditTabCell.h"
@interface UserIconEditTabCell()
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIImageView *icon;

@end
@implementation UserIconEditTabCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)refresh:(NSDictionary *)info{
    self.title.text = info[@"title"];
    if ([info[@"icon"] isKindOfClass:[UIImage class]]) {
        self.icon.image = info[@"icon"];
    }else{
        self.icon.image = DefaultUserIcon;
    }
    
}

@end
